<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<link rel="stylesheet" href="${pageContext.request.contextPath }/css/editTablestyles.css" />
<script type="text/javascript" src="${pageContext.request.contextPath }/webjars/jquery/1.12.4/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/listTable.js"></script>
<title>Insert title here</title>
</head>
<body>
		<form action="vehicle.action?methodName=toAddVehicle" method="post">
		<table class="querytable" width="94%" align="center">
			<tr>
				<th>车辆类型</th>
				<th>车辆品牌</th>
				<th>型号编号</th>
				<th>车辆型号</th>
				<th>车辆座位</th>
				<th>操作</th>
			</tr>
			<c:forEach items="${vlist }" var="vehicleType">
				<tr>
					<td>${vehicleType.typeName }</td>
					<td>${vehicleType.vehicleBrand }</td>
					<td>${vehicleType.vehicleTypeId }</td>
					<td>${vehicleType.vehicleTypeName }</td>
					<td>${vehicleType.seat }座</td>
					<td>
						<a href="vehicleType.action?methodName=doDetailVehicle&vehicleTypeId=${vehicleType.vehicleTypeId }">查看</a>
						<a href="vehicleType.action?methodName=toUpdateVehicle&vehicleTypeId=${vehicleType.vehicleTypeId }">修改</a>
						<a onclick="return confirm('确认删除该车辆吗？')" href="vehicleType.action?methodName=doDeleteVehicle&vehicleTypeId=${vehicleType.vehicleTypeId }">删除</a>
					</td>
				</tr>
			</c:forEach>
			<tr>
				<td colspan="9" align="center">
					<input type="submit" value="新增车型信息" />
				</td>
			</tr>
		</table>
	</form>
</body>
</html>